<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xSite Administrator's Control Panel</title>
<link rel="stylesheet" href="./php.net.cn/xsite/admin/images/admincp.css" type="text/css" media="all" />
<meta content="xSite Inc." name="Copyright" />
</head>
<body>
<div id="append"></div>
<script type="text/javascript">
	function headermenu(ctrl) {
		ctrl.className = ctrl.className == 'otherson' ? 'othersoff' : 'otherson';
		var menu = document.getElementById('header_menu_body');
		if(!menu) {
			menu = document.createElement('div');
			menu.id = 'header_menu_body';
			menu.innerHTML = '<ul>' + document.getElementById('header_menu_menu').innerHTML + '</ul>';
			var obj = ctrl;
			var x = ctrl.offsetLeft;
			var y = ctrl.offsetTop;
			while((obj = obj.offsetParent) != null) {
				x += obj.offsetLeft;
				y += obj.offsetTop;
			}
			menu.style.left = x + 'px';
			menu.style.top = y + ctrl.offsetHeight + 'px';
			menu.className = 'togglemenu';
			menu.style.display = '';
			document.body.appendChild(menu);
		} else {
			menu.style.display = menu.style.display == 'none' ? '' : 'none';
		}
	}
</script>
<div class="container">
  <div class="mainbox nomargin">
  	
  <h3 class="marginbot">
  	<?php if(!empty($category)){?>
		添加同级栏目：<a href="xsite.php?action=nav&module=page&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">单页</a>  
                  <a href="xsite.php?action=nav&module=article&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">文章</a> 
                  <a href="xsite.php?action=nav&module=product&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">产品</a> 
                  <a href="#" class="">链接</a>
	<?php }else{?> 
    
    	<?php if(!empty($parent_category)) {?>
  			选择栏目模型：<a href="xsite.php?action=nav&module=page&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">单页</a>  
            			<a href="xsite.php?action=nav&module=article&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">文章</a> 
                        <a href="xsite.php?action=nav&module=product&operation=category_edit&parent_category=<?=$parent_category?>" class="sgbtn">产品</a> 
                        <a href="#" class="">链接</a>
  		<?php } else {?>
        
        	选择栏目模型：<a href="xsite.php?action=nav&module=page&operation=category_edit" class="sgbtn">单页</a>  
            			<a href="xsite.php?action=nav&module=article&operation=category_edit" class="sgbtn">文章</a> 
                        <a href="xsite.php?action=nav&module=product&operation=category_edit" class="sgbtn">产品</a> 
                        <a href="#" class="">链接</a>
        <?php }?>
        
	<?php }?>
  </h3>
  
  <div class="note fixwidthdec">
    <p class="i">这是一资源链接管理模块。</p>
  </div>
  
	  <form action="xsite.php?action=nav&module=<?=$module?>&operation=category_edit" method="post" enctype="multipart/form-data" name="form1">  
	<h3>分类基本设置</h3>
	<table class="inputlist"><?=dynamic_form($form)?></table>
	
	<h3>SEO设置</h3>
	<table class="inputlist"><?=dynamic_form($seo)?></table>
	
      <div class="opt">
        <input type="submit" name="dosubmit" value=" 提 交 " class="btn" tabindex="3" />
		<?php if(!empty($category)){?><input name="data[oldcategory]" type="hidden" id="oldcategory" value="<?=$category?>"><?php }?>
		<?php if(!empty($parent_category)){?>
			<input name="data[parent_category]" type="hidden" id="parent_category" value="<?=$parent_category?>">
		<?php } else {?>
			<input name="data[parent_category]" type="hidden" id="parent_category" value="">
		<?php }?>
        	<input name="data[module]" type="hidden" id="module" value="<?=$module?>">
      </div>
  	</form>

  </div>
</div>
</body>
</html>
